#pragma once

//#include <GL/gl.h>
//#include <GL/glu.h>
#include <GL/glew.h>
#include <string>
#include <iostream>
#include <fstream>

class slShader
{
public:
	slShader();
	~slShader();
	bool loadShader(const std::string &vertFile, const std::string &fragFile);
	bool loadFromString(const std::string &vert, const std::string &frag);
	void begin();
	void end();
	bool _checkCompilation(GLuint shaderID);
	void setUniformSampler2d(std::string name, int texID);

private:
	GLuint fragID;
	GLuint vertID;
	GLuint programID;
	std::string _vertexString;
	std::string _fragmentString;
};